From: Richard M. Stallman Date: Thu, 25 Jul 2002 18:19:43 +0000 (+0000) Subject: (Info-find-index-name): Search for a function definition with a return type. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~31363 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=48d62068f91856c9f7bfbf078330fd199a40cb76;p=emacs.git (Info-find-index-name): Search for a function definition with a return type. --- diff --git a/lisp/info.el b/lisp/info.el index f95cd8bf7b6..07304eabb05 100644 --- a/lisp/info.el +++ b/lisp/info.el @@ -1939,6 +1939,10 @@ Give a blank topic name to go to the Index node itself." (if (or (re-search-forward (format "[a-zA-Z]+: %s\\( \\|$\\)" (regexp-quote name)) nil t) + ;; Find a function definition with a return type. + (re-search-forward (format + "[a-zA-Z]+: [a-zA-Z0-9_]+ %s\\( \\|$\\)" + (regexp-quote name)) nil t) (search-forward (format "`%s'" name) nil t) (and (string-match "\\`.*\\( (.*)\\)\\'" name) (search-forward